<?php
/**
 * Created by PhpStorm.
 * User: Frings
 * Date: 2018/4/12
 * Time: 21:39
 */

use yii\helpers\Url;

$web = Url::base();
?>


<script type="text/javascript">
    function checkAll(chk) {
        var obj = $("#manager_mini_programs_form");
        checkAllCheckBox(chk, obj);
    }



</script>

<div class="form-horizontal modal-body" id="manager_mini_programs_form">
    <div>
        <div class="table-responsive">
            <input type="hidden" id="manager_id" value="<?= $manager_id?>">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th><input type="checkbox" id="check_all_role" class="check-box" onclick="checkAll(this)"></th>
                    <th>小程序名称</th>
                </tr>
                </thead>
                <tbody>
                <?php
                for ($i = 0; $i < count($items); $i++) {
                    $item = $items[$i];
                    ?>
                    <tr>
                        <td>
                            <input type="checkbox" class="check-box"  value="<?= $item['id'] ?>">
                        </td>
                        <td><?= $item['name'] ?></td>
                    </tr>
                    <?php
                }
                ?>
                </tbody>
            </table>
        </div>
    </div>
</div>


